package com.sundhage.gui
{
	public class JSFormSettings
	{
		public var generalPad:int = 5;
		public var buttonPad:int = 20;
		public var width:int = 400;
		public var height:int = 200;
		public var useBusy:Boolean = true;
		public var center:Boolean = true;
		public var curve:int = 8;
		public var xmlId:String = "jsform";
		
		private function parseObj(o:Object):void {
			for (var prop:* in o) {
				try {
					this[prop] = o[prop];
				} catch (e:Error) {
					trace("JSFormSettings::parseObj -> property "+prop+" does not exist.");
				}
			}
		}
		public function JSFormSettings(o:Object) {
			parseObj(o);
		}

	}
}